import { BasicColumn } from '@/components/Table';
import { FormSchema } from '@/components/Form';
import { getDictOptions } from '@/utils/dict';
import { DictEnum } from '@/enums/dictEnum';
export const formSchems: FormSchema[] = [
  {
    field: 'createTime',
    label: '下单日期',
    component: 'RangePicker',
  },
  {
    field: 'status',
    label: '状态',
    component: 'Select',
    componentProps: {
      options: getDictOptions(DictEnum.NORMAL_DISABLE),
    },
  },
];

export const columns: BasicColumn[] = [
  {
    title: '下单日期',
    dataIndex: 'productDetailsContactsName',
  },
  {
    title: '订单编号#',
    dataIndex: 'productEmail',
  },
  {
    title: '状态',
    dataIndex: 'productLabel',
  },
  {
    title: '回款进度',
    dataIndex: 'productCountryId',
  },
  {
    title: '价格条款',
    dataIndex: 'productSource',
  },
  {
    title: '币种',
    dataIndex: 'orderSumMoney',
  },
  {
    title: '订单金额',
    dataIndex: 'productTotalOrders',
  },
  {
    title: '业务员',
    dataIndex: 'userId',
  },
];
